简体   繁体   中英

How to use nyroModal JQuery plugin in javascript redirects

I'm using the nyroModal JQuery Plugin: http://nyromodal.nyrodev.com/

What I want to do is I want the page which I redirect in javascript to open in modal window. If you go to the link above there is an information about the usage of the plugin. It looks simple, but I still couldn't figure it out.

And simply, the usage of the plugin is to include nyroModal function. I tried to do this, but didn't work:

<script language="javascript">
document.location.nyroModal()='redirect.html';
</script>

Any ideas?

Thanks in advance.

$.nyroModalManual({
  url: 'redirect.html'
});

If you want that to happen when the page loads then wrap it in a doc ready.

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