Re: Javascript alert

Russell Gold <[email protected]>
Newsgroups gmane.comp.web.httpunit.devel
Message-ID <[email protected]>
On Mar 28, 2006, at 8:09 AM, Xu Jia wrote:

> Hello,
>
> I have this code in html page
> <IMG SRC=javascript:alert(1111)>

OK now that is strange. I have never seen that syntax, and I will  
guarantee therefore that HttpUnit does not understand it. AFAIK <img  
src=something> expects the "something" to be the address of an image,  
not a javascript expression. Why would anyone write HTML such as  
that? Which browsers recognize it?

In any event, it would have to be an enhancement, and it sounds  
pretty low priority to me at present.

> If I use Internet Explorer, i get the alert message "1111", but if  
> I use
> browser.getWebClient().getNextAlert();
> I can not get this alert.
>
> JSUnit seems to not meet my request.
>
> Can you help me? Thanks!
>
> Regards, Xu
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting  
> language
> that extends applications into web and mobile media. Attend the  
> live webcast
> and join the prime developer group breaking into this new coding  
> territory!
> http://sel.as-us.falkag.net/sel? 
> cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> Httpunit-develop mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/httpunit-develop
>



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.