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 -

c# - Chart control: Design messed Up after clearing and re-adding Y-Values -

ruby on rails - Apipie interferes with proper error codes -