If this really ist he HTML code that you use, you should terminate your <input>
tages with />
<div align="center">
<input type="submit" wicket:id="back" />
<input type="submit" wicket:id="display"
onclick="target='_blank';return true;"/>
</div>
Have you checked (yuse debug tool of your browser) waht html code is used by
your browser? Sometimes (e.g. chrome) browsers are quite smart and they
re-arrange html code when somehtin is wrong.
Stefan
-----Ursprüngliche Nachricht-----
Von: laine78 [mailto:[email protected]]
Gesendet: Donnerstag, 3. Mai 2012 21:40
An: [email protected]
Betreff: Re: Open page in new window when clicking on button
I edited my html file to look like this
<div align="center">
<input type="submit" wicket:id="back" >
<input type="submit" wicket:id="display"
onclick="target='_blank';return true;">
</div>
The display button now opens up a page in a new window. Now he issue is at any
point after I click the display button, the back button also opens up pages in
new windows. How do I go about resetting target in the onclick of the back
button ie.
<input type="submit" wicket:id="bak"
onclick="target=????">
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Open-page-in-new-window-when-clicking-on-button-tp4606719p4606940.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]