Can URL tell jQuery to run a function?

后端 未结 4 1544
滥情空心
滥情空心 2020-12-19 11:28

Have a question regarding URL and jQuery.

Can I specify URL to tell jQuery to run a function?

e.g http://www.website.com/about.html?XYZ

to run a func

4条回答
  •  遥遥无期
    2020-12-19 12:05

    In the URL bar you can always put javascript:XYZ();

    Try that after this url loads: http://jsfiddle.net/maniator/mmAxY/show/

提交回复
热议问题