a link onclick open card javascript code example Example: onclick url <button onclick="location.href='logout.php';">logout</button>