Search Form Code Change

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Dear FP Community,

Have set up a search form and it's working nicely for me however I'd like to
change the html code slightly so that it doesn't open a new browser window
session when I select surname options from the drop-down list.

I've ckecked the code and the element I think needs to be changed is this:-

onclick="window.open(setit.options[setit.selectedIndex].value)">

I'm sure it's a really simple change but I don't know what or how to do it.

Would be really grateful if you could help/

Best Regards

Brian
 
Window open always opens a new window

onclick="window.open(setit.options[setit.selectedIndex].value)">

You need Window location - Try

onclick="window.location(setit.options[setit.selectedIndex].value)">
--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| Dear FP Community,
|
| Have set up a search form and it's working nicely for me however I'd like to
| change the html code slightly so that it doesn't open a new browser window
| session when I select surname options from the drop-down list.
|
| I've ckecked the code and the element I think needs to be changed is this:-
|
| onclick="window.open(setit.options[setit.selectedIndex].value)">
|
| I'm sure it's a really simple change but I don't know what or how to do it.
|
| Would be really grateful if you could help/
|
| Best Regards
|
| Brian
 
Hi Stefan - thanks for the code tip - I have replaced the coding but nothing
seems to happen.

(I've published & refreshed in my browser)

Tried again by simply replacing "open" with "location" and again nothing
happened.

Can I send you the full coding for my form - would that help?

Thanks,

Brian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top