简体   繁体   中英

Fire onclick event for asp form load in Firefox, using Bookmarklet

I'd like to use a bookmarklet to fire an onclick event for an ASP form load. The code for the onclick event is:

    Onclick=”parent.content.location.href='/ics/tt/ticketNew.asp';”

I thought this would work:

    Javascript:parent.content.location.href='/ics/tt/ticketNew.asp';

But no dice...

I can get a different onclick event to fire with a bookmarklet. I can get this:

    onclick="menuClick('ticket', null, ''); "

To fire with this:

    javascript:parent.menu.menuClick('ticket');

Any advice? Thank you.

Well guys thanks for your advice. What I ended up doing was using an autohotkey script to accomplish what I needed. In AHK I used Firefox shortcut keys to set the zoom to default so that my click coordinates in AHK lined up perfectly. No need for simulating the onclick event although it would have been more elegant.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM