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

I want to open a window on a text prompt

Status
Not open for further replies.

GladysPym

Technical User
Jan 6, 2003
76
GB
I need to open a small window, using a behaviour from a text link, and not from an image.

On my page
at the bottom of 'Small CPD Groups', to the right of the 'Back to top' is a line saying 'to register interest click here'

I'd like to use a behaviour to onclick the 'here' to create a small windowed version of interest.html.

It sort of works, but I can't seem to restrict it to just that word. It picks up the whole line.

I'm sure this is a silly easy problem, but, help?

The css, if it's that, is in screen.css

Thanks, guys.
 
I assuming you are adding the link to whole line, if you just want the 'Here' word to be the one to activate it, make sure the link tags only surround that word.

When creating your link just select the word you want.


----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Hmm

That's the problem.
I tried that, but the link actually goes to the whole line, even including the 'Back to top' part.

Pissing me off, really...
 
You can do this from Code view if you feel comfortable enough. Just move everything from the "<a href=.." to ">" over to before the "here" word.


Click [red]<a href=...>[/red]here[red]</a>[/red]



----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Well, I've changed it, and managed to restrict the behaviour to within a span, but it's still not working.
HELP!
 
change your onfocus event in your span for the following:
Code:
onclick="window.open('interest.html','','width=500,height=400')"

This should definitely work.


----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top