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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Window Close/ History Back Questions

Status
Not open for further replies.

oddball

Technical User
Mar 17, 2000
64
GB
Question 1) Have created a popup window that is a help screen to assist in my new registration process. Need a text hyperlink (not an image) to close the pop-up when clicked. How do i do this?

Question 2) Have made a readmore page for the Events & Announcements modules. The page has a 'Back' text hyperlink to get back to the front page, but rather than specify an exact url i would rather get it to go back 1 in the history. What is the full syntax to achieve this?


cheers,

si ;)
 
1) I think window.close() will do what you are looking for.

2) <a href=&quot;javascript:history.go(-1)&quot;>go back</a> should be the ticket.

Disclaimer: I'm by no means a javascript person so don't hold me to it :) but these are both javascript kinda things so if that doesn't work try the javascript forum. [smurf]
01101000011000010110010001110011
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top