Auto click a custom hyperlink when page load using jQuery -


I have a link and click on Auto to open a popup window to play a video.

Link like

   

Just do something like this:

  & lt; A rel = "wp-video-lightbox" href = "" title = "" & gt; Watch Movie & lt; / A & gt; $ (Document) .ready (function () {$ ('a [rel = "your-rel"]'). Get (0). Click (); trigger ('click');}); Update:  Update the code for your needs; Now you only have to change the "rel" attribute. 


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -