Gits, thanks a lot.
I used the simplest method and it works fine. Although, I had to pull out a substring from myVar to eliminate the leading questionmark.
User Profile
Collapse
-
I modified both pages.
On the page that links to the mainpage I modified the href statement:
<a href="mainpage. htm?section4">M ain page - Section 4</a>
with the idea to pass the string 'section4' to the mainpage.
The onload function of the main page has to receive the information that I want to open section 4. Therefore, on the mainpage in the body tag I added the onload part in the form:
onload="show_hi de_call()"...Leave a comment:
-
How to run a script on a page accessed using href
Hi,
I am trying to enhance the functionality of my web site which is hard with my limited knowledge of web developing.
The idea is the following:
On the main web page there is a show_hide script that looks like this:
...Code:<script> function show_hide(the_layer) { if(document.getElementById(the_layer)) { if(document.getElementById(the_layer).style.display == 'none') { document.getElementById(the_layer).style.display
No activity results to display
Show More
Leave a comment: