jesushax Posted February 25, 2008 Share Posted February 25, 2008 hi im trying to make a view close button so when a user clicks view the link name and url change t the close values and vise versa anyon know how i woud do this? Cheers Quote Link to comment Share on other sites More sharing options...
paul2463 Posted February 25, 2008 Share Posted February 25, 2008 let me get this straight in my head, you want a flip-flop button, when the user presses it, it either opens or closes it depending on whether it is open or closed view on - button - view closed - button - view open is that what you mean, just one button to do both opening and closing? Quote Link to comment Share on other sites More sharing options...
jesushax Posted February 25, 2008 Author Share Posted February 25, 2008 yer thats right, one link that will open and close my urls Quote Link to comment Share on other sites More sharing options...
paul2463 Posted February 25, 2008 Share Posted February 25, 2008 then write yourself a javascript function and call it every time you click the button function openclose(url) { if (url view window is open) { close url view window } else { open url view window } } <input type="button" value="View" onClick="openclose(url);" /> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.