Changing the onclick function for links in js

Issue

This Content is from Stack Overflow. Question asked by yektamovie

In the following script:

https://goo.by/jxooj

Or

<shorturl.at/emCHL>

I ran into a problem with this script that I can’t figure out
After clicking on all the videos, they will be opened as a pop-up and their information will be displayed.
But I want the pages to open after clicking like this:

site/index.php?id=tt12345

Or

site/tt12345

But I don’t have enough knowledge to do this, the script with all the details and codes is at your disposal above.



Solution

Check the Answers

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?