Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is it Possible to send javascript command via URL?

Status
Not open for further replies.
Sep 25, 2002
159
US
hi everyone,

I have a page that I need to link to that contains a menu that allows you to expand and collapse via javascript. I was wondering if I can attach something to my URL that would open that page with the appropriate option expanded?

Here is the code snippet of javascript that operates the expand/collapse functionality, via an image graphic.

<a href="javascript:" onclick="javascript:ExpCollGroup('19_','img_19_');return false;"><img id="img_19_" src="/_layouts/images/minus.gif" alt="Expand/Collapse" border="0"></a>&nbsp;Category :&nbsp;Web Development ...

thank you.

dhx
 
Why not read the page name and extend the menu based on which page is open in the browser? That's the way I handle that kind of thing.

Lee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top