i have a html button that when clicked i want it to open the page within the same window. I have set the following code in the on-click event and it has the odd bit of PHP in too.
the window.open.self just doesnt work, can any of you chaps offer a solution ??
ive been experimenting with the location method and carnt seem to get it working, i have tried a few different combinations of the location.href, losing the () round the expression and losing the javascript: thats at the begining of the onclick event.
ive been experimenting with the location method and carnt seem to get it working, i have tried a few different combinations of the location.href, losing the () round the expression and losing the javascript: thats at the begining of the onclick event.
Getting HTML Select Values to Open in Same Browser Window
Hi,
I'm trying to couple the "window.location.href" command with the values in a straightforward HTML Select statement, with the intent to get the links to open in the same browser page. It should be simple but I seem to be stuck.
I followed the advice in the thread but I can't seem to get the "window.location.href" command to work. If I use the "window.open" command, instead, the links open in new browser tabs without any issues, but I really need to get them to open in the same browser window/tab. Could someone please take a look at my code and advise as to what I'm doing wrong?
How to Make HTML Selects Open in the Same Browser Window or Tab
Hi,
I received a message telling me that "J. H. Rasmussen" responded to my question. However, after logging back on, I don't see it online. I don't know if there's a delay between the mail notification system and the posting but I decided to include the post so that J. H. Rasmussen's solution could be shared with others...
Thanks J. H. for your response. It worked, first try!
If there are any other options that others are aware of, please feel free to share. All solutions are welcomed and appreciated.
Bookmarks