how to open new page in curent window's

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kujtim
    New Member
    • Sep 2007
    • 11

    how to open new page in curent window's

    i need to open a new page page1.html i am using javascript function

    :[code=javascript]window.open("pa ge1.php");[/code] but this function is opening new window , i want when i click the button to open page1.html in the curent windows not to open new
    do you have any idea how to do thet. help pleas..
    Last edited by pbmods; Oct 6 '07, 02:31 AM. Reason: Added CODE tags and fixed an embarrassing typo.
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5390

    #2
    hi ...

    i've moved the post from the js-articles-section to the forum for you ... please don't post questions in the articles-sections ...

    to your problem: don't use window open ... use:

    [CODE=javascript]window.location .href = 'whatever_url_y ou_have'[/CODE]
    kind regards

    Comment

    Working...